package com.zcl.javaClassAndObject.inheritance.inheritanceInitanize;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/10  14:11
 */
public class Beetle extends Insect{
    int k = prt("Beetle.k initialized");
    Beetle() {
        prt("k = " + k);
        prt("j = " + j);
    }
    static int x2 =
            prt("static Beetle.x2 initialized");
    static int prt(String s) {
        System.out.println(s);
        return 63;
    }
    public static void main(String[] args) {
        prt("Beetle constructor");
        Beetle b = new Beetle();
    }
}
/**
 * static Insect.x1 initialized
 * static Beetle.x2 initialized
 * Beetle constructor
 * i = 9, j = 0
 * Beetle.k initialized
 * k = 63
 * j = 39
 * */
